﻿#ifndef ALL_BOOK_H
#define ALL_BOOK_H
#include <QStandardItemModel>
#include <QWidget>
#include"book_sql.h"
#include <QWidget>
#include "readersql.h"
#include <QSqlTableModel>
#include <QSortFilterProxyModel>
//只是一个推送测试，无需在意
namespace Ui {
class all_book;
}

class all_book : public QWidget
{
    Q_OBJECT

public:
    explicit all_book(QWidget *parent = nullptr);
    void set_table_model(QStandardItemModel *model);
    QSqlTableModel *model;
    book_sql * bok;
    QString name;
    int count=0;//用于判断是否是初次进入界面
    void book_show(void);
    ~all_book();

private slots:
    void on_search_btn_clicked();

private:
    Ui::all_book *ui;
};

#endif // ALL_BOOK_H
